import { createApp  } from 'vue'
import App from './App.vue'
import router from './router'
import {createPinia} from 'pinia'
// 引入pinia持久化插件
import piniaPluginPersist from 'pinia-plugin-persist'
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'

import * as Icons from '@element-plus/icons-vue'

import "@/permission";
import 'uno.css'
import './assets/styles/index.scss'

import 'element-plus/theme-chalk/dark/css-vars.css'


const store = createPinia()
store.use(piniaPluginPersist);

const app = createApp(App)

Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key as keyof typeof Icons])
})
app.use(router)
app.use(store)
app.use(VXETable)
app.mount('#app')
